package com.qf.feign;

import com.qf.pojo.Goods;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author YDW
 * projectName:project2202_4
 * time:2022/6/14 9:37
 * description:
 */
//@Component
@RequestMapping("/fallback")
public class MyFallback implements GoodsFeign{
    @Override
    public String sayHello() {
        return null;
    }

    @Override
    public String get(Integer id) {
        return null;
    }

    @Override
    public String add(Goods goods) {
        return "系统异常，请联系管理员";
    }
}
